import request from '@/utils/request'
//运动处方显示
export function exerciseprescription(data) {
    return request({
     
      url: '/api-fol/followYzyExercisePrescription/listByExePre',
      method: 'post',
      data: data,
      baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
    })
  }
 
  //紧急处理显示
export function emergencytreatment(data) {
  return request({
   
    url: '/api-fol/followYzyEmergencyTreatment/listByEmeTre',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
 

//饮食处方显示
export function dietprescription(data) {
  return request({
   
    url: '/api-fol/followYzyDietPrescription/listByDiePre',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

//风险评估显示
export function theriskassessment(data) {
  return request({
   
    url: '/api-fol/followYzyRiskAssessment/listByRisAss',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

//检测范围显示
export function detectionrange(data) {
  return request({
   
    url: '/api-jst/standard/getStandardList',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

//药品管理显示
export function drugadministration(data) {
  return request({
   
    url: '/api-jst/jst/base/selectDrugListPage',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
 //删除运动处方
 export function deleteexerciseprescription(data) {
  return request({
   
    url: '/api-fol/followYzyExercisePrescription/deleteExePre',
    method: 'delete',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//删除紧急处理
export function deleteemergencytreatment(data) {
  return request({
   
    url: '/api-fol/followYzyEmergencyTreatment/deleteEmeTre',
    method: 'delete',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//删除饮食处方
export function deletedietprescription(data) {
  return request({
   
    url: '/api-fol/followYzyDietPrescription/deleteDiePre',
    method: 'delete',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//删除风险评估
export function deletetheriskassessment(data) {
  return request({
   
    url: '/api-fol/followYzyRiskAssessment/deleteRisAss',
    method: 'delete',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//删除检测范围
export function deletedetectionrange(data) {
  return request({
   
    url: '/api-jst/standard/deleteBaseinfo',
    method: 'delete',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//删除药品管理
export function deletedrugadministration(data) {
  return request({
   
    url: '/api-jst/jst/base/deleteBaseinfo',
    method: 'delete',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//新增运动处方
export function newexerciseprescription(data) {
  return request({
   
    url: '/api-fol/followYzyExercisePrescription/saveExePre',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//新增紧急处理
export function newemergencytreatment(data) {
  return request({
   
    url: '/api-fol/followYzyEmergencyTreatment/saveEmeTre',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//新增饮食处方
export function newdietprescription(data) {
  return request({
   
    url: '/api-fol/followYzyDietPrescription/saveDiePre',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//新增风险评估
export function newtheriskassessment(data) {
  return request({
   
    url: '/api-fol/followYzyRiskAssessment/saveRisAss',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//新增检测范围
export function newdetectionrange(data) {
  return request({
   
    url: '/api-jst/standard/saveServiceRecord',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//新增药品管理
export function newdrugadministration(data) {
  return request({
   
    url: '/api-jst/jst/base/insertBaseinfo',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
 //运动处方回显
export function theechoexerciseprescription(data) {
  return request({
   
    url: '/api-fol/followYzyExercisePrescription/getByExePre',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
 //紧急处理回显
 export function theechoemergencytreatment(data) {
  return request({
   
    url: '/api-fol/followYzyEmergencyTreatment/getByEmeTre',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//饮食处方回显
export function theechodietprescription(data) {
  return request({
   
    url: '/api-fol/followYzyDietPrescription/getByDiePre',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//风险评估回显
export function theechotheriskassessment(data) {
  return request({
   
    url: '/api-fol/followYzyRiskAssessment/getByRisAss',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//检测范围回显
export function theechodetectionrange(data) {
  return request({
   
    url: '/api-jst/standard/selectByPrimaryKey',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//药品管理回显
export function theechodrugadministration(data) {
  return request({
   
    url: '/api-jst/jst/base/getPhaItemByPrimaryKey',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

 //运动处方修改
 export function updateexerciseprescription(data) {
  return request({
   
    url: '/api-fol/followYzyExercisePrescription/updateExePre',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
 //紧急处理修改
 export function updateemergencytreatment(data) {
  return request({
   
    url: '/api-fol/followYzyEmergencyTreatment/updateEmeTre',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//饮食处方修改
export function updatedietprescription(data) {
  return request({
   
    url: '/api-fol/followYzyDietPrescription/updateDiePre',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//风险评估修改
export function updatetheriskassessment(data) {
  return request({
   
    url: '/api-fol/followYzyRiskAssessment/updateRisAss',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//检测范围修改
export function updatedetectionrange(data) {
  return request({
   
    url: '/api-jst/standard/saveServiceRecord',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//药品管理修改
export function updatedrugadministration(data) {
  return request({
   
    url: '/api-jst/jst/base/updateBaseinfo',
    method: 'put',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}





